from sqlalchemy import Column, String, Integer, orm
from app.models.user import user

class Member(user):
    id = Column(Integer, primary_key=True, autoincrement=True)
    #college = Column(String(50), nullable=False)


    #def __init__(self, name, age, college, email, password):
    def __init__(self, name, email, password):
        #super(Student,self).__init__(name, age, email, password)
        super(Member,self).__init__(name, email, password)
        #self.college = college

    def jsonstr(self):

        jsondata = {
            'name':self.name,
            #'age': self.age,
            #'college': self.college,
            'email': self.email

        }

        return jsondata
